export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        name: 'login',
        path: '/user/login',
        component: './user/Login',
      },
    ],
  },
  {
    path: '/welcome',
    name: '欢迎',
    icon: 'smile',
    component: './Welcome',
  },
  {
    path: '/customer',
    name: '客户管理',
    icon: 'team',
    routes: [
      {
        path: '/customer/list',
        name: '客户列表',
        component: './views/customer',
      },
      {
        path: '/customer/my',
        name: '我的客户',
        component: './views/customer/myindex',
      },
      {
        path: '/customer/public',
        name: '公海客户',
        component: './views/customer/publicindex',
      },
      {
        path: '/customer/distribution',
        name: '客户分布',
        component: './views/customer/distribution',
      },
      {
        path: '/customer/detail',
        name: '客户详情',
        component: './views/customer/detail',
        hideInMenu: true,
      },
    ],
  },
  {
    path: '/admin',
    name: '管理页',
    icon: 'crown',
    access: 'canAdmin',
    routes: [
      {
        path: '/admin/sub-page',
        name: '二级管理页',
        component: './Admin',
      },
    ],
  },
  {
    path: '/',
    redirect: '/welcome',
  },
  {
    component: '404',
  },
]; 